package dao.lzl.dao.impl;

import dao.lzl.dao.NewsDao;
import dao.lzl.pojo.News;
import dao.lzl.service.NewsService;

import java.util.logging.Logger;

public class NewsDaoImpl implements NewsDao {
    @Override
    public void save(News news) {

    }
    /*private Logger logger = Logger.getLogger(NewsDaoImpl.class);
    @Override
    public void save(News news) {
        logger.debug("保存新闻信息到数据库");
    }*/
}



class NewsServiceImpl implements NewsService{
    NewsDao newsDao = new NewsDaoImpl();

    @Override
    public void save(News news) {
        newsDao.save(news);
    }
}
